import request from "../utils//request";
const menu = {
    menuList(username) {
        return request(`/menu/${username}`, {
            method: 'GET'
        })
    },
    userMenu() {
        return request(`/menu/${JSON.parse(localStorage.user).username}`, {

        })
    },
    menulist(body){
        return request('/menu',{
            method:'PUT',
            body
        })
    },
addmenu(body){
    return request('/menu',{
        method:'POST',
        body
    })
}
}
export default menu